namespace CRMG.Container.Source.DL
{
    using CRMG.Container.Source.BO;
    using CRMG.Container.Source.QO;
    using Guru.Framework.BaseDal;
    using System;
    using System.Data;

    public class InPaymentDL : BaseDL
    {

        public InPaymentDL()
        {
        }
        public DataTable GetPayments()
        {
            try
            {
                return Manager.GetResultSet(Crud.GetPayments()).Tables[0];
            }
            catch (Exception)
            {
                throw;
            }
        }

        internal DataTable GetPaymentsOfStudent(int studentId)
        {
            try
            {
                return GetWhereChangeColumnList(new InPayment() { StudentId = studentId });
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}

